package com.medicalproject.service.impl;


import com.medical.pojo.*;
import com.medicalproject.mapper.Work_orderMapper;
import com.medicalproject.service.Work_orderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class Work_orderServiceImpl implements Work_orderService {

    @Autowired
    private Work_orderMapper work_orderMapper;

    @Override
    public List<Work_order> findAll(Work_order workOrder) {
        List<Work_order> workOrders = work_orderMapper.findAll(workOrder);
        return workOrders;
    }

    @Override
    public Work_order findById(Integer id) {
        Work_order workOrder = work_orderMapper.findById(id);
        return workOrder;
    }

    @Override
    public void save(Work_order workOrder) {
        work_orderMapper.save(workOrder);
    }

    @Override
    public void update(Work_order workOrder) {
        work_orderMapper.update(workOrder);
    }

    @Override
    public List<Accessory> accessoryAll() {
        List<Accessory> accessories = work_orderMapper.accessoryAll();
        return accessories;
    }

    @Override
    public Accessory accessoryById(Integer id) {
        Accessory accessory = work_orderMapper.accessoryById(id);
        return accessory;
    }

    @Override
    public void accessoryUpdate(Accessory accessory) {
        work_orderMapper.accessoryUpdate(accessory);
    }

    @Override
    public List<Accessoryjl> accessoryjlAll() {
        List<Accessoryjl> accessoryjls = work_orderMapper.accessoryjlAll();
        return accessoryjls;
    }

    @Override
    public Accessoryjl accessoryjlById(Integer id) {
        Accessoryjl accessoryjl = work_orderMapper.accessoryjlById(id);
        return accessoryjl;
    }

    @Override
    public void accessoryjlUpdate(Accessoryjl accessoryjl) {
        work_orderMapper.accessoryjlUpdate(accessoryjl);
    }

    @Override
    public void accessoryjlSave(Accessoryjl accessoryjl) {
        work_orderMapper.accessoryjlSave(accessoryjl);
    }

    @Override
    public List<Qcjh> qcAll() {
        List<Qcjh> qc = work_orderMapper.qcAll();
        return qc;
    }

    @Override
    public List<Qc> QcAll() {
        List<Qc> qcs = work_orderMapper.QcAll();
        return qcs;
    }

    @Override
    public Qc qcById(Integer id) {
        Qc qcjh = work_orderMapper.qcById(id);
        return qcjh;
    }

    @Override
    public List<Smzq> smqzAll() {
        List<Smzq> smqz = work_orderMapper.smqzAll();
        return smqz;
    }

    @Override
    public List<Gdrz> gdrzAll() {
        List<Gdrz> gdrz = work_orderMapper.gdrzAll();
        return gdrz;
    }

    @Override
    public List<Wbdw> wbdwAll() {
        List<Wbdw> wbdw = work_orderMapper.wbdwAll();
        return wbdw;
    }

    @Override
    public List<Xjdw> xjdwAll() {
        List<Xjdw> xjdw = work_orderMapper.xjdwAll();
        return xjdw;
    }


}
